package a8;

public class PowerGenerator {

	/**
	 * Constructs a power generator.
	 * @param aFactor the number that will be multiplied by itself
	 */
	public PowerGenerator(double aFactor) {
		number = aFactor;
		i = 1;
		System.out.println(number);
	}
	/**
	 * 
	 * @return The next power of 10
	 */
	public double nextPower() {
		i *= 10;
		return number*i;
	}
	
	private double number;
	private int i;
}
